// 封装分类数据业务相关代码
// 轮播图逻辑
import { ref, onMounted } from 'vue'
import {getBannerService} from '@/api/home'
export function useBanner() {
    const bannerList = ref([])
    const getBannerlist = async () => {
        const res = await getBannerService({
            distributionSite:'2'
        })
        bannerList.value = res
    }
    onMounted(() => {
        getBannerlist()
    })
    return{
        bannerList,
        getBannerlist
    } 
}